package com.jp.knowledge.model;

import java.io.Serializable;

public class TeamCircleConstactsModel implements Serializable{

    /**
     * depaId : cfdb28c7-77df-6952-8955-02f89855d93f
     * position : 职位
     * userName : 13421217412
     * userIcon : http://pic.jp580.com/FkLf2KHqtoDQ2whghavi3iK8JXk-
     * department : 总经办
     * userId : 264aa1eb-a04d-4900-9bd6-321e9c287610
     * remark: 13421217412
     */

    private String depaId;
    private String position;
    private String userName;
    private String userIcon;
    private String department;
    private String userId;
    private String remark;
    private boolean isChecked;

    private String phone;//电话号码
    private int companyManage;
    private String letter;
    private int companyAdmin;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public boolean getIsChecked() {
        return isChecked;
    }

    public void setIsChecked(boolean isChecked) {
        this.isChecked = isChecked;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDepaId() {
        return depaId;
    }

    public void setDepaId(String depaId) {
        this.depaId = depaId;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getCompanyManage() {
        return companyManage;
    }

    public void setCompanyManage(int companyManage) {
        this.companyManage = companyManage;
    }

    public String getLetter() {
        return letter;
    }

    public void setLetter(String letter) {
        this.letter = letter;
    }

    public int getCompanyAdmin() {
        return companyAdmin;
    }

    public void setCompanyAdmin(int companyAdmin) {
        this.companyAdmin = companyAdmin;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj != null && obj instanceof TeamCircleConstactsModel){
            String userId = ((TeamCircleConstactsModel) obj).getUserId();
            if(userId != null && userId.equals(getUserId()))
                return true;
        }
        return super.equals(obj);
    }
}
